<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/2/1
  Time: 10:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%
      Cookie cookie = new Cookie("name", "zhangsan");
      cookie.setMaxAge(60);//秒
      response.addCookie(cookie);

      Cookie cookie2 = new Cookie("name", "lisi");
      cookie.setMaxAge(60);//秒
      response.addCookie(cookie2);
  %>
</body>
</html>
